package com.ruoyi.fs.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fs.mapper.FsCaseCourtContactMapper;
import com.ruoyi.fs.domain.FsCaseCourtContact;
import com.ruoyi.fs.service.IFsCaseCourtContactService;

/**
 * 案件法院沟通Service业务层处理
 * 
 * @author hero
 * @date 2024-11-14
 */
@Service
public class FsCaseCourtContactServiceImpl implements IFsCaseCourtContactService 
{
    @Autowired
    private FsCaseCourtContactMapper fsCaseCourtContactMapper;

    /**
     * 查询案件法院沟通
     * 
     * @param id 案件法院沟通主键
     * @return 案件法院沟通
     */
    @Override
    public FsCaseCourtContact selectFsCaseCourtContactById(Long id)
    {
        return fsCaseCourtContactMapper.selectFsCaseCourtContactById(id);
    }

    /**
     * 查询案件法院沟通列表
     * 
     * @param fsCaseCourtContact 案件法院沟通
     * @return 案件法院沟通
     */
    @Override
    public List<FsCaseCourtContact> selectFsCaseCourtContactList(FsCaseCourtContact fsCaseCourtContact)
    {
        return fsCaseCourtContactMapper.selectFsCaseCourtContactList(fsCaseCourtContact);
    }

    /**
     * 新增案件法院沟通
     * 
     * @param fsCaseCourtContact 案件法院沟通
     * @return 结果
     */
    @Override
    public int insertFsCaseCourtContact(FsCaseCourtContact fsCaseCourtContact)
    {
        fsCaseCourtContact.setCreateTime(DateUtils.getNowDate());
        return fsCaseCourtContactMapper.insertFsCaseCourtContact(fsCaseCourtContact);
    }

    /**
     * 修改案件法院沟通
     * 
     * @param fsCaseCourtContact 案件法院沟通
     * @return 结果
     */
    @Override
    public int updateFsCaseCourtContact(FsCaseCourtContact fsCaseCourtContact)
    {
        fsCaseCourtContact.setUpdateTime(DateUtils.getNowDate());
        return fsCaseCourtContactMapper.updateFsCaseCourtContact(fsCaseCourtContact);
    }

    /**
     * 批量删除案件法院沟通
     * 
     * @param ids 需要删除的案件法院沟通主键
     * @return 结果
     */
    @Override
    public int deleteFsCaseCourtContactByIds(Long[] ids)
    {
        return fsCaseCourtContactMapper.deleteFsCaseCourtContactByIds(ids);
    }

    /**
     * 删除案件法院沟通信息
     * 
     * @param id 案件法院沟通主键
     * @return 结果
     */
    @Override
    public int deleteFsCaseCourtContactById(Long id)
    {
        return fsCaseCourtContactMapper.deleteFsCaseCourtContactById(id);
    }
}
